<template>
    <div class="about-container">
        <div class="about-header">
            <h1 class="about-title">关于膳养智选</h1>
            <p class="about-subtitle">让每个人都能享受健康饮食的乐趣</p>
        </div>

        <div class="feature-grid">
            <div class="feature-row">
                <div class="feature-item">
                    <div class="feature-icon-wrapper">
                        <el-icon class="feature-icon"><Compass /></el-icon>
                    </div>
                    <div class="feature-content">
                        <h2>个性化推荐</h2>
                        <div class="feature-description">
                            <p class="main-text">基于您的体检数据，为您量身定制饮食方案</p>
                            <div class="detail-list">
                                <div class="detail-item">
                                    <el-icon><Check /></el-icon>
                                    <span>智能分析体检指标，识别健康风险</span>
                                </div>
                                <div class="detail-item">
                                    <el-icon><Check /></el-icon>
                                    <span>考虑个人饮食偏好和禁忌</span>
                                </div>
                                <div class="detail-item">
                                    <el-icon><Check /></el-icon>
                                    <span>推荐最适合您的食物组合</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="feature-item">
                    <div class="feature-icon-wrapper analysis">
                        <el-icon class="feature-icon"><DataAnalysis /></el-icon>
                    </div>
                    <div class="feature-content">
                        <h2>深度健康分析</h2>
                        <div class="feature-description">
                            <p class="main-text">专业的健康指标解读系统</p>
                            <div class="detail-list">
                                <div class="detail-item">
                                    <el-icon><Check /></el-icon>
                                    <span>全面解读18项重要健康指标</span>
                                </div>
                                <div class="detail-item">
                                    <el-icon><Check /></el-icon>
                                    <span>直观展示健康状况变化趋势</span>
                                </div>
                                <div class="detail-item">
                                    <el-icon><Check /></el-icon>
                                    <span>及时预警潜在健康风险</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="feature-row">
                <div class="feature-item">
                    <div class="feature-icon-wrapper management">
                        <el-icon class="feature-icon"><Monitor /></el-icon>
                    </div>
                    <div class="feature-content">
                        <h2>智能健康管理</h2>
                        <div class="feature-description">
                            <p class="main-text">科学的健康管理解决方案</p>
                            <div class="detail-list">
                                <div class="detail-item">
                                    <el-icon><Check /></el-icon>
                                    <span>实时监测健康指标变化</span>
                                </div>
                                <div class="detail-item">
                                    <el-icon><Check /></el-icon>
                                    <span>提供个性化饮食建议</span>
                                </div>
                                <div class="detail-item">
                                    <el-icon><Check /></el-icon>
                                    <span>智能调整饮食方案</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="feature-item">
                    <div class="feature-icon-wrapper experience">
                        <el-icon class="feature-icon"><MagicStick /></el-icon>
                    </div>
                    <div class="feature-content">
                        <h2>良好用户体验</h2>
                        <div class="feature-description">
                            <p class="main-text">简约而不简单的产品设计</p>
                            <div class="detail-list">
                                <div class="detail-item">
                                    <el-icon><Check /></el-icon>
                                    <span>简洁直观的界面设计</span>
                                </div>
                                <div class="detail-item">
                                    <el-icon><Check /></el-icon>
                                    <span>便捷的数据上传和管理</span>
                                </div>
                                <div class="detail-item">
                                    <el-icon><Check /></el-icon>
                                    <span>人性化的操作流程</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="about-footer">
            <h3>开启您的健康生活</h3>
            <p>膳养智选，您的专属健康管理专家</p>
            <el-button type="primary" size="large" @click="$router.push('/medicalReport')">
                立即体验
                <el-icon class="el-icon--right"><ArrowRight /></el-icon>
            </el-button>
        </div>
    </div>
</template>

<script setup>
import { 
    Compass,
    DataAnalysis,
    Monitor,
    MagicStick,
    Check,
    ArrowRight
} from '@element-plus/icons-vue'
</script>

<style scoped>
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-title {
    font-size: 36px;
    color: #303133;
    margin: 0 0 16px;
    background: linear-gradient(45deg, #409EFF, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-subtitle {
    font-size: 18px;
    color: #606266;
    margin: 0;
}

.feature-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.feature-item {
    display: flex;
    gap: 30px;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon-wrapper {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: #409EFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-wrapper.analysis {
    background: #67C23A;
}

.feature-icon-wrapper.management {
    background: #E6A23C;
}

.feature-icon-wrapper.experience {
    background: #F56C6C;
}

.feature-icon {
    font-size: 40px;
    color: white;
}

.feature-content {
    flex: 1;
}

.feature-content h2 {
    font-size: 24px;
    color: #303133;
    margin: 0 0 16px;
}

.main-text {
    font-size: 16px;
    color: #606266;
    margin: 0 0 20px;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-item .el-icon {
    color: #67C23A;
    font-size: 18px;
}

.detail-item span {
    color: #606266;
    font-size: 14px;
}

.about-footer {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.about-footer h3 {
    font-size: 24px;
    color: #303133;
    margin: 0 0 12px;
}

.about-footer p {
    font-size: 16px;
    color: #606266;
    margin: 0 0 24px;
}

.about-footer .el-button {
    padding: 12px 24px;
    font-size: 16px;
}

@media (max-width: 1024px) {
    .feature-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }
}
</style>
